<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fn1() {
        console.log("fn1");
      }
      const fn2 = function (x,y) {
        console.log("fn2",x,y);
      };
      fn1();
      fn2(1,2);
      (function (x, y) {
        console.log("fn2", x + y);
      })(1, 2);

      // const fn3 = 'hello';
      // fn3();
      // 'hello'();
    </script>
  </body>
</html>
